package com.spcloud.fegin.server.controller;


import com.spcloud.common.entity.Order;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;


/**
 * 服务端提供接口
 * @author GuoChunbo
 * @create 2020-03-12 8:46
 * @Description: 类的描述
 */
@RestController
public class OrderController {

    /**
     * orderList
     */
    @GetMapping("/orderlist")
    public List<Order> orderList(){
        List<Order> orders = new ArrayList<>();
        orders.add(new Order(1,"订单名称1"));
        orders.add(new Order(2,"订单名称2"));
        orders.add(new Order(3,"订单名称3"));
        orders.add(new Order(4,"订单名称4"));
        orders.add(new Order(5,"订单名称5"));
        return orders;
    }

}
